
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;

import org.springframework.batch.core.Job;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobParameters;
import org.springframework.batch.core.launch.JobLauncher;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
	public static void main(String[] args) {

		
		String[] springConfig = { "spring-batch-config.xml" };

		ApplicationContext context = 
				new ClassPathXmlApplicationContext(springConfig);
		 
//			JobLauncher jobLauncher = (JobLauncher) context.getBean("jobLauncher");
//			Job job = (Job) context.getBean("clienteLoadJob");
		 
//			try {
//		 
//				JobExecution execution = jobLauncher.run(job, new JobParameters());
//				System.out.println("Exit Status : " + execution.getStatus());
//		 
//			} catch (Exception e) {
//				e.printStackTrace();
//			}
		 

		System.out.println("Done");

		
		
	}
	
//	public static void main(String[] args) throws MalformedURLException {
//		URL url = new URL("file://F|/dev/File/");
//		File file = new File(url.getFile());
//		System.out.println(file.isFile());
//	}
}